package com.quxuecx.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: shaofeer
 * <p>
 * @qq: 337081267
 * <p>
 * @CSDN: http://blog.csdn.net/pyfysf
 * <p>
 * @blog: http://quxuecx.com
 * <p>
 * @email: shaofeer@163.com
 * <p>
 * @time: 2021/1/10
 */
@Configuration
public class MyRibbonRule {

    @Bean
    public IRule getMyRule() {
        return new RandomRule();
    }
}
